package cn.com.cifi.mars.web.action.sys;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import cn.com.cifi.mars.bean.vo.sys.rsp.SysRouteVo;
import cn.com.cifi.mars.common.base.BaseAction;
import cn.com.cifi.mars.common.bean.R;
import cn.com.cifi.mars.service.SysRouteService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yyd
 * @since 2019-09-18
 */
@RestController
public class SysRouteController extends BaseAction implements ISysRouteController{

	@Autowired
	private SysRouteService sysRouteService;
	
	/**
	 * 获取路由信息
	 * @return
	 */
	@Override
	public R<SysRouteVo> getSysRoute(String apiVersion) {
		return ok(sysRouteService.queryRouteList());
	}

}
